﻿<UserControl x:Class="Chapters.Chapter07.ScrollingExample"
						 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
						 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
						 xmlns:Chapter07="clr-namespace:FSharp.Chapter7;assembly=FSharpLibrary"
						 ClipToBounds="True">
	<DockPanel>
		<ScrollBar DockPanel.Dock="Bottom"
							 Minimum="0"
							 Maximum="{Binding ExtentSize, ElementName=Panel}"
							 ViewportSize="{Binding ViewportSize, ElementName=Panel}"
							 Value="{Binding HorizontalOffset, ElementName=Panel, Mode=TwoWay}"
							 Orientation="Horizontal" />
		<Chapter07:HScrollingPanel x:Name="Panel">
			<Button />
			<Button />
			<Button />
			<Button />
			<Button />
			<Button />
			<Button />
			<Button />
			<Button />
			<Button />
		</Chapter07:HScrollingPanel>
	</DockPanel>
</UserControl>
